package com.xz.simplerpc.api;

import com.xz.simplerpc.constants.ContentType;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * Created by Fingal on 2017-12-4.
 */
@Path("score")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface ScoreService {

    @GET
    @Path("query")
    Integer query(@QueryParam("name") String name);
}
